﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Idte.Communication.Media
{
    [Table("EmailAddress")]
    public class EmailAddress: MediaIdentification
    {
        public static implicit operator EmailAddress(string address)
        {
            return new EmailAddress { Address = address };
        }
        [MaxLength(255), MinLength(5)]
        public string Address { get; set; }
    }
}
